package cn.e2win.biz.dbo;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import cn.e2win.base.entity.BaseEntity;

@Entity
@Table(name = "notice")
public class Notice extends BaseEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

		//编号--结算单
		@Id
		@Basic(optional = false)
		@GeneratedValue(strategy = GenerationType.IDENTITY)
		@Column(name = "id", nullable = false)
		private Integer id;

		//接收人
		private Integer toUserId;
		//发送人
		private Integer fromUserId;
		
		private String noticeType;
		
		private String entityType;
		
		private Integer entityId;
		
		private String noticeDesc;

		private String readStatus="unRead";
		
		public Notice(){
			super();
		}
		public Notice(BaseEntity baseEntity){
			super();
			this.entityType = baseEntity.getClass().getSimpleName();
			this.entityId = baseEntity.getId();
		}

		public Integer getId() {
			return id;
		}

		public void setId(Integer id) {
			this.id = id;
		}

		public Integer getToUserId() {
			return toUserId;
		}

		public void setToUserId(Integer toUserId) {
			this.toUserId = toUserId;
		}

		public Integer getFromUserId() {
			return fromUserId;
		}

		public void setFromUserId(Integer fromUserId) {
			this.fromUserId = fromUserId;
		}

		public String getNoticeType() {
			return noticeType;
		}

		public void setNoticeType(String noticeType) {
			this.noticeType = noticeType;
		}

		public String getEntityType() {
			return entityType;
		}

		public void setEntityType(String entityType) {
			this.entityType = entityType;
		}

		public Integer getEntityId() {
			return entityId;
		}

		public void setEntityId(Integer entityId) {
			this.entityId = entityId;
		}

		public String getNoticeDesc() {
			return noticeDesc;
		}

		public void setNoticeDesc(String noticeDesc) {
			this.noticeDesc = noticeDesc;
		}

		public String getReadStatus() {
			return readStatus;
		}

		public void setReadStatus(String readStatus) {
			this.readStatus = readStatus;
		}

		
		
}
